home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960425-19960715 / 000012_news@columbia.edu _Sat Apr 27 08:02:15 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id IAA02184 for <kermit.misc@watsun>; Sat, 27 Apr 1996 08:02:14 -0400 (EDT)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.5/8.7.3) id IAA06557 for kermit.misc@watsun; Sat, 27 Apr 1996 08:02:12 -0400 (EDT)
  4. Path: news.columbia.edu!sol.ctr.columbia.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!newsserver.jvnc.net!newsserver2.jvnc.net!netnews.upenn.edu!cronkite.ocis.temple.edu!VM.TEMPLE.EDU!AMRHEIN
  5. From: AMRHEIN@VM.TEMPLE.EDU (amrhein,paul)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Terminal Emulation: cursor control via mouse
  8. Date: Fri, 26 Apr 96 12:47:38 EDT
  9. Organization: Temple University
  10. Lines: 27
  11. Message-ID: <17775B3EAS86.AMRHEIN@VM.TEMPLE.EDU>
  12. NNTP-Posting-Host: vm.temple.edu
  13.  
  14. I am currently incorporating the Kermit file transfer protocol into a terminal
  15. emulation program used in an IBM mainframe environment.
  16.  
  17. I have encountered a problem (not related to file transfer) that has me
  18. stumped.  I'd like to relocate the on-screen cursor with a click of the mouse.
  19. The algorithm goes roughly like this:
  20.  
  21.       determine the current cursor coordinates
  22.       determine the coordinates of the mouse pointer when clicked
  23.       compute the number of arrow strokes (up, down, left, right) needed to
  24.               properly relocate the cursor
  25.       send these keystrokes
  26.  
  27. When I implement this algorithm, the mouse click sends the cursor flying about
  28. my screen in all directions (reminiscent of the old 'Pong' game), and it comes
  29. to rest in an unlikely position.  We have come to call this effect 'the rogue
  30. cursor.'
  31.  
  32. Is there a trick or secret to controlling the cursor with a mouse?
  33.  
  34. Any suggestions or references would be greatly appreciated.
  35.  
  36. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  37. |  Paul M. Amrhein                           amrhein@vm.temple.edu   |
  38. |  Accounting Information Systems            215-204-3125 (phone)    |
  39. |  Temple University                         215-204-4500 (fax)      |
  40. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++